package com.bj.ocean.gankio;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.widget.Toast;

public class BaseActivity extends AppCompatActivity {

    public  String TAG=this.getClass().getSimpleName();

    public void jumpToActivity(Context context, Bundle bundle,Class c){
        Intent intent=new Intent(context,c);
        if (bundle!=null){
            intent.putExtras(bundle);
        }
        startActivity(intent);
    }

    public void showToast(String msg){
        Toast.makeText(this, TextUtils.isEmpty(msg)?"吐司内容为空呢":msg, Toast.LENGTH_SHORT).show();
    }

}
